 

package com.zdkj.subway.stm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zdkj.subway.stm.dto.in.SwStTicketCheckCheckDTO;
import com.zdkj.subway.stm.dto.in.SwStTicketCheckDTO;
import com.zdkj.subway.stm.dto.out.SwStTicketPettyAddDTO;
import com.zdkj.subway.stm.entity.SwStTicketCheck;

import java.util.List;

/**
 * 车票盘点数据
 *
 * @author songtuo
 * @date 2020-07-11 22:08:18
 */
public interface SwStTicketCheckService extends IService<SwStTicketCheck> {
    /**
     * 新增车票盘点数据详情
     * @param swStTicketCheckDTO
     * @return
     */
    boolean saveSwStTicketCheck(SwStTicketCheckDTO swStTicketCheckDTO);

    /**
     * 更新车票详情
     * @param swStTicketCheckDTO
     * @return
     */
    boolean updateSwStTicketCheck(SwStTicketCheckDTO swStTicketCheckDTO);

    /**
     * 级联删除
     * @param id
     * @return
     */
    boolean deleteCascadeById(Integer id);

    /**
     * 查看详情  用于回显预览
     * @param id
     * @return
     */
    SwStTicketCheckDTO queryDetailsByid(Integer id);

    /**
     * 批量提交状态
     * @param ids
     * @param status
     * @return
     */
    boolean updateApprovalStatus(List<Integer> ids, String status,String todoflag);

    /**
     * 车票盘点审核
     */
    boolean checkStatus(SwStTicketCheckCheckDTO dto);


}
